const app = getApp()
let qCloud = require("../../index.js");

Page({
  /** 页面的初始数据 */
  data: {
    imgPath: qCloud.config.STATIC_IMAGE_PATH,
    showModalStatus: false,
    searchUserList: [{
      userId: 4985110261628928,
      realName: "小马哥"
    },
    {
      userId: 4985139911458816,
      realName: "雯雯"
    }]
  },

  /** 生命周期函数--监听页面加载 */
  onLoad: function (options) {

  },

  /** 选择员工 */
  changeUser: function (e) {
    this.setData({
      showModalStatus: true
    })

  },

  /**关闭弹窗 */
  hideStaffModal: function (e) {
    let animation = wx.createAnimation({
      duration: 200,
      timingFunction: "linear",
      delay: 0
    });
    this.animation = animation;
    animation.translateY(300).step();
    this.setData({
      animationData: animation.export(),
    });
    setTimeout(function () {
      animation.translateY(0).step();
      this.setData({
        animationData: animation.export(),
        searchUserList: [],
        showModalStatus: false
      })
    }.bind(this), 200);
  },

  /**搜索员工 */
  searchUserInput: function (e) {
    let self = this;

  },

  /**确认选择员工 */
  confirmUser: function (e) {

  },




});
